import axios from '@/utils/axios'
const {get, post, put, delete:del } = axios

// 获取列表  {pageNumber:1,pageSize:10}
export const getStars = (params) => {
  return get('/users', {params})
}

// 批量修改 用户状态    status(0-未锁定 1-已锁定)  "ids": [0]
export const changeStatus = (status,data) => {
  return put(`/users/${status}`, data)
}

// 用户密码重置  重置后密码为123456 {"userId": 0}
export const resetPwd = (data) => {
  return put('/users/resetPassword', data)
}